import type { ArticleData, ArticleResult } from "@/types/article"
import { request } from "@/utils/request"

// 获取内容列表
export const getArticleListApi = (data: ArticleData) => {
    return request<ArticleResult>(
        '/v1_0/mp/articles','GET',data)
}

// 删除文章
export const deleteArticleItemApi = (id: string) => {
    return request(`/v1_0/mp/articles/${id}`, 'DELETE'
    )
}
